home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: novice.uwaterloo.ca!w3yu
- From: w3yu@novice.uwaterloo.ca (Wei Yu)
- Subject: drand48() problems
- Sender: news@novice.uwaterloo.ca (Mr. News)
- Message-ID: <DMoE0p.BKs@novice.uwaterloo.ca>
- Date: Mon, 12 Feb 1996 18:29:13 GMT
- Nntp-Posting-Host: novice.uwaterloo.ca
- Organization: University of Waterloo
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Hi, I am trying to generate random numbers with the drand48() routine
- available in UNIX C library. But apperantly, drand48() always returns 0.
- lrand48(), which generates long integer, does work, but I get the same
- sequence of numbers regardless of what seed I provide using srand48().
-
- Am I missing something here?
-
- Thanks.
-
-